// 给结构赋值并打印其数据

#include <iostream>
#include <string.h>

using namespace std;

struct Student {
    char name[40];
    char address[80];
    char ID_Num[15];
    int dept_code;
    int major;
};

int main() {
    Student MyStudent;

    strcpy(MyStudent.name, "Melissa Williams");
    strcpy(MyStudent.address, "123 Main Stree, C-Ville, USA");
    strcpy(MyStudent.ID_Num, "123-45-6789");
    MyStudent.dept_code = 7;
    MyStudent.major = 2;

    cout.setf(ios::fixed);
    cout.precision(2);

    cout << "学生是 " << MyStudent.name << "\n"
        << "地址是 " << MyStudent.address << "\n"
        << "学号是 " << MyStudent.ID_Num << "\n"
        << "学院编号 = " << MyStudent.dept_code << "\n"
        << "专业编号 = " << MyStudent.major << "\n";
}